package com.xframe.xdal.core.model.es;

import com.xframe.xdal.core.model.ConditionValue;
import org.elasticsearch.index.query.QueryBuilder;


/**
 * 功能描述:ES QueryBuilder 抽象类
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-04-23
 */
public abstract class BaseQueryBuilder implements IQueryBuilder {

    /**
     * 构造函数
     */
    protected String esQueryBuildArgs;

    /**
     * 构造函数
     * @param esQueryBuildArgs 构造参数
     *
     */
    public BaseQueryBuilder(String esQueryBuildArgs){
        this.esQueryBuildArgs = esQueryBuildArgs;
    }
    /**
     * 构造QueryBuilder
     * @param conditionValue 查询条件
     *
     * @return QueryBuilder对象
     */
    @Override
    public abstract QueryBuilder builder(ConditionValue conditionValue);
}
